# coding=utf-8
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker, declarative_base

# 数据库连接地址（替换为实际数据库信息）
SQLALCHEMY_DATABASE_URL = "mysql+pymysql://root:123456@localhost:3306/a0804?charset=utf8mb4"
POOL_SIZE = 20

engine = create_engine(
    SQLALCHEMY_DATABASE_URL,
    pool_size=POOL_SIZE,
)
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
Base = declarative_base()